home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mission 3
/
Mission 3.zip
/
Mission 3.iso
/
texte
/
7up_pd
/
assert.h
< prev
next >
Wrap
Text File
|
1998-10-29
|
639b
|
39 lines
/* ASSERT.H
Diagnostic Includes
Copyright (c) Borland International 1990
All Rights Reserved.
*/
#if !defined( __ASSERT )
#define __ASSERT
#if !defined(NDEBUG)
#if !defined(__STDLIB)
#include <stdlib.h>
#endif
#if !defined( __STDIO )
#include <stdio.h>
#endif
#define assert( expr )\
((void)((expr)||(fprintf( stderr, \
"\nAssertion failed: %s, file %s, line %d\n",\
#expr, __FILE__, __LINE__ ),\
((int (*)(void))abort)())))
#else
#define assert( expr )
#endif
#endif
/************************************************************************/
ə